<?php

class Controller_Plugin_Access extends Zend_Controller_Plugin_Abstract {
    
    public function preDispatch($action) {
        $reachable = Application_Auth::getInstance()->isReachable($action);
        if (!$reachable) {
            $action->setControllerName('Home');
            $action->setActionName('');
            $action->setParams(array());
        }
        return $action;
    }
    
    
}